import metaInterface from '../../meta.interface';
import { CalendarOutlined } from "@ant-design/icons-vue";
export default {
  path: 'channelManagement',
  name: 'channelManagement',
  redirect: '/channelManagement/channelListPage',
  meta: {
    title: '渠道管理',
    icon: () => <CalendarOutlined />,
  } as metaInterface,
  children: [
    {
      path: 'channelListPage',
      name: 'channelListPage',
      component: () => import('@/views/index/channelManagement/channelListPage/channelListPage'),
      meta: {
        title: '渠道列表',
      } as metaInterface,
    },
    {
      path: 'channelUsersPage',
      name: 'channelUsersPage',
      component: () => import('@/views/index/channelManagement/channelUsersPage/channelUsersPage'),
      meta: {
        title: '渠道账号',
      } as metaInterface,
    },
    {
      path: 'accountRecordPage',
      name: 'accountRecordPage',
      component: () => import('@/views/index/channelManagement/accountRecordPage/accountRecordPage'),
      meta: {
        title: '消费记录',
      } as metaInterface,
    },
    {
      path: 'channelPermissions',
      name: 'channelPermissions',
      component: () => import('@/views/index/channelManagement/channelPermissions/channelPermissions'),
      meta: {
        title: '渠道权限',
      } as metaInterface,
    },
    {
      path: "discountSetPage",
      name: "discountSetPage",
      component: () => import('@/views/index/channelManagement/channelUsersPage/discountSetPage/discountSetPage'),
      meta: {
        title: "折扣配置",
        hidden: true,
      } as metaInterface,
    },
    {
      path: 'channelAuditing',
      name: 'channelAuditing',
      component: () => import('@/views/index/channelManagement/channelAuditing/channelAuditing'),
      meta: {
        title: '渠道审核',
      } as metaInterface,
    },
    {
      path: 'transferReview',
      name: 'transferReview',
      component: () => import('@/views/index/channelManagement/transferReview/transferReview'),
      meta: {
        title: '转账审核',
      } as metaInterface,
    },
    {
      path: 'auditing',
      name: 'auditing',
      component: () => import('@/views/index/channelManagement/transferReview/auditing/auditing'),
      meta: {
        title: '凭证审核',
      } as metaInterface,
    }
  ],
}